<html>
<!-- This page saves the messages from Panic_E.php -->
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="../css/Default.css" />
<Script language="javascript" src="../data/password.js"></script>
<Script language="javascript" src="../exec/login.js"></script>
<noscript>
	location.href="../noscript.html";
</noscript>
<SCRIPT LANGUAGE="JavaScript">

	window.onload = redir(0);

//Name of cookie: 'eomdmf'

</SCRIPT>
</head>
<body >
<?php
$msg = array();
$msg[] = " ";
//Import form information 
for($i=1; $i<6; $i++){
	//5 is the number of messages
	$msg[] = $_POST['Panic_'.$i.''];
	
	$fh = fopen("msg".$i.".txt", "w");
	if($fh == false){
		//Can't write to this file
		continue;
	}
	fwrite($fh,$msg[$i]."");
	fclose($fh);
}

?>
<table height="100%" width="100%" border="0">
<tr>
<td>
<center>
	<p style="font-family: Arial; font-size:20px"> Your playlist has been saved.</p>
	<FORM METHOD="LINK" ACTION="../index.html">
	<INPUT TYPE="submit" VALUE="Home Page">
	</FORM>	
<FORM METHOD="LINK" ACTION="../LoggedIn.php">
<INPUT TYPE="submit" VALUE="Return to Main Menu">
</FORM>
<FORM METHOD="LINK" ACTION="../PanicMenu.html">
<INPUT TYPE="submit" VALUE="Return to Panic Menu">
</FORM>
</center>
</td>
</tr>
</table>
</body>
</html>
